package cn.yuanqiao.archive.bianjifabu.domain;

import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;

/**
 * 【请填写功能名称】对象 A001_YQFABUFANGAN_DA
 *
 * @author yuanqiao
 * @date 2024-03-20
 */
public class YqfabufanganDa extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String BIGTABLENAME = "_YQFABUFANGAN_DA";

    public YqfabufanganDa() {
        String tenantCode = SecurityUtils.getTenantCode();
        if(StringUtils.isEmpty(tenantCode)){
            if(SecurityUtils.getLoginUser() != null){
                tenantCode = SecurityUtils.getLoginUser().getSysUser().getTenantCode();
            }
        }
        this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    private String tableName;
    /** 方案id */
    //@Excel(name = "方案id")
    private String fanganId;

    /** 档案id */
    //@Excel(name = "档案id")
    private String daId;

    /** 门类名称 */
    //@Excel(name = "门类名称")
    private String categoryName;

    /** 档号 */
    //@Excel(name = "档号")
    private String dh;

    /** 责任者 */
    //@Excel(name = "责任者")
    private String zrz;

    /** 题名 */
    //@Excel(name = "题名")
    private String title;

    /** 日期 */
    //@Excel(name = "日期")
    private String rq;

    /** 页数 */
    //@Excel(name = "页数")
    private String ys;

    /** 是否开放 */
    //@Excel(name = "是否开放")
    private String isOpens;

    /** 备注 */
    //@Excel(name = "备注")
    private String bz;

    /** 状态 */
    //@Excel(name = "状态")
    private String state;


    public String getFanganId() {
        return fanganId;
    }

    public void setFanganId(String fanganId) {
        this.fanganId = fanganId;
    }

    public String getDaId() {
        return daId;
    }

    public void setDaId(String daId) {
        this.daId = daId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getDh() {
        return dh;
    }

    public void setDh(String dh) {
        this.dh = dh;
    }

    public String getZrz() {
        return zrz;
    }

    public void setZrz(String zrz) {
        this.zrz = zrz;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRq() {
        return rq;
    }

    public void setRq(String rq) {
        this.rq = rq;
    }

    public String getYs() {
        return ys;
    }

    public void setYs(String ys) {
        this.ys = ys;
    }

    public String getIsOpens() {
        return isOpens;
    }

    public void setIsOpens(String isOpens) {
        this.isOpens = isOpens;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "YqfabufanganDa{" +
                "fanganId='" + fanganId + '\'' +
                ", daId='" + daId + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", dh='" + dh + '\'' +
                ", zrz='" + zrz + '\'' +
                ", title='" + title + '\'' +
                ", rq='" + rq + '\'' +
                ", ys='" + ys + '\'' +
                ", isOpens='" + isOpens + '\'' +
                ", bz='" + bz + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
